#ifndef TUNEMANUAL_H
#define TUNEMANUAL_H

#include "analytedatabase.h"

class TuneManual
{
public:
    TuneManual();
    QHash<QString,HopScanPara> GetHopScanParas();
    bool SetHopScanPara(QString,HopScanPara);
    bool AddHopScanPara(QString,HopScanPara);
    HopScanPara GetHopScanPara(QString);
    bool RemoveHopScanPara(QString);

    QList<SweepScanPara> GetSweepScanParas();
    bool SetSweepScanParas(QList<SweepScanPara>);
    bool SetSweepScanPara(int,SweepScanPara);
    SweepScanPara GetSweepScanPara(int);
    bool RemoveSweepScanPara(int);
    bool AddSweepScanPara(SweepScanPara);

    friend QDataStream & operator<< ( QDataStream & stream, const TuneManual & tuneManual );
    friend QDataStream &	operator>> ( QDataStream & stream, TuneManual & tuneManual );

private:
    QHash<QString,HopScanPara> hopScanParas;//分析元素
    QList<SweepScanPara> sweepScanParas;
    IsotopePara isotopePara;//同位素
    //QList<ExpRawData> rawDatas;//sample

    QString filePath;//temp
};

#endif // TUNEMANUAL_H
